package com.pithypan.common;

public enum ResponseCodeEnum {

    CODE_200(200, "请求成功"),
    CODE_404(404, "邮箱已存在"),
    CODE_414(414, "邮箱未注册"),
    CODE_600(600, "账号或密码错误"),
    CODE_602(602, "图片验证码不正确"),
    CODE_603(603, "邮箱验证码不正确"),
    CODE_604(604, "邮箱验证码已失效"),
    CODE_605(605, "请求参数错误"),
    CODE_500(500, "服务器返回错误，请联系客服"),
    CODE_901(901, "登录超时"),
    CODE_902(902, "分享文件不存在，或已过期"),
    CODE_903(903, "提取码错误"),
    CODE_904(904, "空间不足，请进行扩容"),
    CODE_905(905, "源文件不存在"),
    CODE_906(906, "验证失效，请重新输入提取码");

    private Integer code;
    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
